module.exports = {
  productionSourceMap: false,
  publicPath: './',
  lintOnSave: false,
  configureWebpack: (config) => {
    // if (process.env.NODE_ENV === 'production') {
    //   //生产环境生效 取消console
    //   config.optimization.minimizer[0].options.terserOptions.compress.warnings = false;
    //   config.optimization.minimizer[0].options.terserOptions.compress.drop_console = true;
    //   config.optimization.minimizer[0].options.terserOptions.compress.drop_debugger = true;
    //   config.optimization.minimizer[0].options.terserOptions.compress.pure_funcs =
    //     ['console.log'];
    // }
    // plugins: [
    //   new webpack.ProvidePlugin({
    //     $: 'jquery',
    //     jQuery: 'jquery',
    //     'windows.jQuery': 'jquery',
    //   }),
    // ];
  },
};
